home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / ProgramF / CRYSTAL / CRW9 / DEV / INCLUDE / Uxdmapi.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-01-15  |  2.7 KB  |  131 lines

  1.  
  2. //<HEADER_BEGIN>
  3. //================================================
  4. //File name: Uxdmapi.h
  5. //Date : January, 15 2002  12:15
  6. //Copyright (c) 2002 - Crystal Decisions Corp.
  7. //================================================
  8. //<HEADER_END>
  9.  
  10. #if !defined (UXDMAPI_H)
  11. #define UXDMAPI_H
  12.  
  13. // Set 1-byte structure alignment
  14. #if defined (__BORLANDC__)      // Borland C/C++
  15.   #pragma option -a-
  16. #elif defined (_MSC_VER)        // Microsoft Visual C++
  17.   #if _MSC_VER >= 900           // MSVC 2.x and later
  18.     #pragma pack (push)
  19.   #endif
  20.   #pragma pack (1)
  21. #endif
  22.  
  23. #if defined (__cplusplus)
  24. extern "C"
  25. {
  26. #endif
  27.  
  28. #include "crsMAPI.h"
  29.  
  30. #define UXDMAPIType             0
  31.  
  32. typedef struct UXDMAPIOptionsA
  33. {
  34.     WORD structSize;
  35.  
  36.     char FAR *toList;           // 'toList' and 'ccList' are ignored
  37.     char FAR *ccList;           // if specifying recipients below.
  38.  
  39.     char FAR *subject;
  40.     char FAR *message;
  41.  
  42.     WORD nRecipients;           // 'nRecipients' must be 0 if specifying
  43.     lpMapiRecipDescA recipients; // To and CC lists above.
  44.  
  45.     char FAR *userName;
  46.     char FAR *password;
  47.  
  48.     WORD nEncodedBytes;
  49.  
  50. #if defined (__cplusplus)
  51. public:
  52.     UXDMAPIOptionsA()
  53.     {
  54.         toList  = NULL;
  55.         ccList  = NULL;
  56.         subject = NULL;
  57.         message = NULL;
  58.         recipients = NULL;
  59.         userName = NULL;
  60.         password = NULL;
  61.         nEncodedBytes = 0;
  62.     };
  63. #endif
  64.  
  65. }
  66.     UXDMAPIOptionsA;
  67.  
  68. typedef struct UXDMAPIOptionsW
  69. {
  70.     WORD structSize;
  71.  
  72.     wchar_t FAR *toList;           // 'toList' and 'ccList' are ignored
  73.     wchar_t FAR *ccList;           // if specifying recipients below.
  74.  
  75.     wchar_t FAR *subject;
  76.     wchar_t FAR *message;
  77.  
  78.     WORD nRecipients;            // 'nRecipients' must be 0 if specifying
  79.     lpMapiRecipDescW recipients; // To and CC lists above.
  80.  
  81.     wchar_t FAR *userName;
  82.     wchar_t FAR *password;
  83.  
  84.     WORD nEncodedBytes;
  85.  
  86.  
  87. #if defined (__cplusplus)
  88. public:
  89.     UXDMAPIOptionsW()
  90.     {
  91.         toList  = NULL;
  92.         ccList  = NULL;
  93.         subject = NULL;
  94.         message = NULL;
  95.         recipients = NULL;
  96.         userName = NULL;
  97.         password = NULL;
  98.         nEncodedBytes = 0;
  99.     };
  100. #endif
  101.  
  102. }
  103.     UXDMAPIOptionsW;
  104.  
  105. #ifdef UNICODE
  106. typedef UXDMAPIOptionsW UXDMAPIOptions;
  107. #else
  108. typedef UXDMAPIOptionsA UXDMAPIOptions;
  109. #endif  //UNICODE 
  110.  
  111.  
  112. #define UXDMAPIOptionsSize      (sizeof (UXDMAPIOptions))
  113.  
  114.  
  115. #if defined (__cplusplus)
  116. }
  117. #endif
  118.  
  119. // Reset structure alignment
  120. #if defined (__BORLANDC__)
  121.   #pragma option -a.
  122. #elif defined (_MSC_VER)
  123.   #if _MSC_VER >= 900
  124.     #pragma pack (pop)
  125.   #else
  126.     #pragma pack ()
  127.   #endif
  128. #endif
  129.  
  130. #endif // UXDMAPI_H
  131.